package com.sky.controller.notify;

import com.sky.result.Result;
import com.sky.service.OrderService;
import com.sky.webSocket.WebSocketServer;
import jakarta.servlet.annotation.WebServlet;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.net.http.WebSocket;
import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/notify")
@Slf4j
public class OrderRemind {
    @Autowired
    private OrderService orderService;



    @RequestMapping("/orderPaySuccess")
    public Result orderPaySuccess(String outTradeNo)
    {
      log.info("订单支付成功，订单号：{}",outTradeNo);
        orderService.paySuccess(outTradeNo);
        return Result.success();
    }
}
